namespace dk.nita.saml20
{
    using System;

    /// <summary>
    ///     Thrown when a token does not comply with the DK-Saml 2.0 specification. This does not necessarily imply that the
    ///     token is not a valid DK SAML 2.0 Assertion.
    /// </summary>
    public class Saml2FormatException : Exception
    {
        /// <summary>
        ///     Initializes a new instance of the <see cref="Saml2FormatException" /> class.
        /// </summary>
        public Saml2FormatException()
        {
        }

        /// <summary>
        ///     Initializes a new instance of the <see cref="Saml2FormatException" /> class.
        /// </summary>
        /// <param name="msg">The MSG.</param>
        public Saml2FormatException(string msg)
            : base(msg)
        {
        }

        /// <summary>
        ///     Initializes a new instance of the <see cref="Saml2FormatException" /> class.
        /// </summary>
        /// <param name="msg">A message describing the problem that caused the exception.</param>
        /// <param name="cause">Another exception that may be related to the problem.</param>
        public Saml2FormatException(string msg, Exception cause)
            : base(msg, cause)
        {
        }
    }
}